<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
 <script>
     function MyFunc(){
         var data = 100 ;
         function func_1(){
             data = data*5;
         }
         function func_n(){
             alert(data);
         }
         func_1();
         func_n();
     }
     MyFunc();
 </script>
</body>
</html>